package com.gaga.console.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gaga.console.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liujia
 * @since 2022-06-01
 */
@Data
@Accessors(chain = true)
@TableName("sys_database")
@ApiModel(value = "SysDatabase对象", description = "")
public class SysDatabase extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("数据源名")
    private String name;

    @ApiModelProperty("数据源标题")
    private String alias;

    @ApiModelProperty("数据源分组")
    private String groupName;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("IP")
    private String ip;

    @ApiModelProperty("端口号")
    private Integer port;

    @ApiModelProperty("url")
    private String url;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

}
